//
//  UIButton+Extension.h
//  JWBrowser
//
//  Created by Dejun Liu on 14-11-5.
//  Copyright (c) 2014年 JW. All rights reserved.
//

#import <UIKit/UIKit.h>
@interface UIButton (Extension)

typedef enum
{
    topBaritemBack,
    topBaritemEdit,
}topBaritemType;

- (UIImage *)buttonImageFromColor:(UIColor *)color;

- (UIButton* )CreatedBarItem:(topBaritemType)type;

+ (void)customButton:(UIButton *)btn title:(NSString *)title titleColor:(UIColor *)color font:(UIFont *)font bgImage:(UIImage *)bgImage highlightedImage:(UIImage *)highlightedImage;

@end
